import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'normalize.css'
import echarts from 'echarts'
// import $ from 'jquery'
import 'echarts-gl'
// 引入中国地图依赖
import 'echarts/map/js/china'
// 引入icon
import './assets/icon/iconfont.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 封装好的请求
import http from './plugin/axios'

import vueJsonp from 'vue-jsonp'
import $ from 'jquery'
// 引入v-charts
import VCharts from 'vue-echarts'

// import NProgress from 'nprogress'

// 时间插件
import moment from 'moment'

// 全局挂载
Vue.prototype.$moment = moment

Vue.component('v-chart', VCharts)

// 配置echarts插件
Vue.use(echarts)
Vue.use(ElementUI)

Vue.use(vueJsonp)
Vue.prototype.$ = $
Vue.prototype.$GET = http.$GET
Vue.prototype.$PATCH = http.$PATCH
Vue.prototype.$POST = http.$POST
Vue.prototype.$PUT = http.$PUT
Vue.prototype.$DELETE = http.$DELETE
Vue.prototype.$axios = http.axios
Vue.prototype.$echarts = echarts
// Vue.prototype.mbgl = mapBoxGl

Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App),
  data: {
    eventHub: new Vue()
  }
}).$mount('#app')
